$$ = window.$$
litxt = "name month-sale current-price original-price"
li = litxt.split(" ")
out = [li.join(",")]
exist = new Set()

fetch = =>
  new Promise (resolve)=>
    setTimeout(
      =>
        for i from $$(".normal-fooddetail-container")
          t = []
          for cls from li
            t.push((i.getElementsByClassName(cls)[0]?.innerText or '').replace(/,/g,"，"))
          name = t[0]
          if exist.has name
            continue
          exist.add name
          out.push t.join(',')
          resolve()
      1000
    )

do =>
  for i from $$(".category-item")
    i.click()
    await fetch()
  console.log out.join("\n")
  console.log out.length





